package cn.yunyichina.provider.base.dao;

import java.util.List;

import cn.yunyichina.provider.base.entity.OrderList;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import cn.yunyichina.provider.framework.annotation.MyBatisRepository;
import cn.yunyichina.provider.framework.mvc.dao.BaseDao;

/**
*
* @Author auto_gen_by_tool
* @CreatedTime 2016-10-27 10:50:38
*/
@Repository
@MyBatisRepository
public interface OrderListDao extends BaseDao<OrderList>{
	
	/**
	 * 根据订单号查询
	 * @param orderNo
	 */
	public List<OrderList> queryByOrderNo(@Param("orderNo") String orderNo);
	
	/**
	 * 根据订单号，删除所有订单项
	 * @param orderNo
	 * @return
	 */
	public List<OrderList> deleteByOrderNo(@Param("orderNo") String orderNo);
}